<?php
class model_newagk_company extends gdl_components_basemodel
{

    public function primarykey() {
        return 'id';
    }

    public function tableName() {
        return 'agk_company';
    } 
	
	/**
     * 获得公司列表
     */
    public function getList($admin_reg,$projectid=0){
        $condition = '';
        if ($projectid!=0)$condition = " AND project_id=".$projectid;
		$arr=$this->select('status=1 and  isdelete=0 '.$condition,'id,name,pid')->items;	
		
		
        return $arr;
    }
}
